package com.alibaba.org.domain;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.basic.constant.BaseConstants;
import com.alibaba.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    //orderNum 列的顺序

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    /**
     * 店铺座机
     */
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    /**
     * 入驻时间
     */

    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st" ,format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1审核通过待激活，3激活成功，4驳回
     */
    @Excel(name = "状态" , replace = {"待审核_1","审核通过待激活_2","激活成功_3","驳回_4"},orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = BaseConstants.Shop.STATE_WAIT_AUTID;
    /**
     * 店铺地址
     */
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    /**
     * 店铺logo
     */
    @Excel(name="店铺LoGo",orderNum = "6",width = 30, isImportField = "true_st")
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;

    private Employee admin;

    private List<ShopAuditLog> shopAuditLogs = new ArrayList<>();
}
